package cn.how2go.api.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author LGP
 * @since 2020-05-31
 */
public class Device implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ID", type = IdType.UUID)
    private String id;
    @TableField("TermID")
    private String TermID;
    @TableField("Type")
    private Integer Type;
    @TableField("State")
    private Integer State;
    @TableField("Owner")
    private String Owner;
    @TableField("Working")
    private Integer Working;

    @TableField("LastTime")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date LastTime;

    @TableField("CreateTime")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date CreateTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTermID() {
        return TermID;
    }

    public void setTermID(String TermID) {
        this.TermID = TermID;
    }

    public Integer getType() {
        return Type;
    }

    public void setType(Integer Type) {
        this.Type = Type;
    }

    public Integer getState() {
        return State;
    }

    public void setState(Integer State) {
        this.State = State;
    }

    public String getOwner() {
        return Owner;
    }

    public void setOwner(String Owner) {
        this.Owner = Owner;
    }

    public Integer getWorking() {
        return Working;
    }

    public void setWorking(Integer Working) {
        this.Working = Working;
    }

    public Date getLastTime() {
        return LastTime;
    }

    public void setLastTime(Date LastTime) {
        this.LastTime = LastTime;
    }

    public Date getCreateTime() {
        return CreateTime;
    }

    public void setCreateTime(Date CreateTime) {
        this.CreateTime = CreateTime;
    }

    @Override
    public String toString() {
        return "Device{" +
        "id=" + id +
        ", TermID=" + TermID +
        ", Type=" + Type +
        ", State=" + State +
        ", Owner=" + Owner +
        ", Working=" + Working +
        ", LastTime=" + LastTime +
        ", CreateTime=" + CreateTime +
        "}";
    }
}
